package olderCar;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-04
 * Time: 20:03
 */
public class Car {

    private FrameWork frameWork;
    public Car(){
        frameWork = new FrameWork();
    }
    public static void main(String[] args) {
        Car car = new Car();
        //创建一辆车并且进行运行
        car.init();
    }

    //车的启动方法
    public void init(){
        //车的启动要依赖底盘的启动
        System.out.println("Car init!");
        frameWork.init();
    }

}
